package bean;

/**
 * @author 李志培
 *         <p/>
 *         作者信息：嘉应学院1303班
 *         <p/>
 *         创建日期：2016-4-29下午3:58
 *         <p/>
 *         类描述：封装了消息数据
 *         <p/>
 *         修改历史：
 */
public class Message {

    public int _id;
    public long date;
    public String body;
    public int state;
    public int type;
    public String chatWith;//serverID
    public String userId ;
    public String userName;

    public Message(){

    }

    public Message(int _id, long date, String body, int state, int type, String chatWith, String userId) {
        this._id = _id;
        this.date = date;
        this.body = body;
        this.state = state;
        this.type = type;
        this.chatWith = chatWith;
        this.userId = userId;
    }

    public void set_id(int _id) {
        this._id = _id;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public void setChatWith(String chatWith) {
        this.chatWith = chatWith;
    }

    public void setDate(long date) {
        this.date = date;
    }

    public void setState(int state) {
        this.state = state;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int get_id() {
        return _id;
    }

    public int getState() {
        return state;
    }

    public int getType() {
        return type;
    }

    public long getDate() {
        return date;
    }

    public String getBody() {
        return body;
    }

    public String getChatWith() {
        return chatWith;
    }
}
